<script setup>
import { ref, watch } from 'vue';
import route from '@/router/index.js';

const iframeUrl = ref('')
const init = () => {
  iframeUrl.value = route.currentRoute.value.query.href
}
watch(()=>route, () => {
  init()
}, {
  deep: true,
  immediate: true
})
</script>

<template>
  <div class="container">
    <iframe width="100%" height="100%" :src="iframeUrl" frameborder="0"></iframe>
  </div>
</template>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: calc(100vh - 150px);
}
</style>